package com.qifenqian.turbot.module.adapter.order

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * @author H
 * @createTime 2018/12/14 10:08
 * @description
 * @see
 * @since
 */
class OrderPagerAdapter(fm: FragmentManager, private var titles: List<String>, private var fragmentList: MutableList<Fragment>) : FragmentPagerAdapter(fm) {

    override fun getItem(p0: Int): Fragment {
        return fragmentList[p0]
    }

    override fun getCount(): Int {
        return fragmentList.size
    }

    override fun getPageTitle(position: Int): CharSequence? {
        return titles[position]
    }
}

